path=$(pwd)
cd ${path}
serverName="root@120.26.96.12"
project_h5_name="h5"
npm run build
tar -zcvf ${project_h5_name}.tar ./dist
scp ${path}/${project_h5_name}.tar ${serverName}:/home/deploy/${project_h5_name}
ssh ${serverName} << 'EOF'
#变量定义
cd /home/deploy/h5
rm -rf ./dist
tar -zxvf h5.tar
/usr/sbin/nginx -s reload
EOF

# x3JJHMbDL1EzLkhhXDw=9GB